﻿<?xml version="1.0" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"
	namespace="DataAccess" assembly="DataAccess">

  <class name="DataAccess.Filter, DataAccess" table="FILTER">
    <id name="Id" column="ID" type="Int64">
		<generator class="identity"/>
    </id>
    <property name="Name" type="String" column="NAME"/>
    <property name="Type" type="String" column="TYPE"/>
    <property name="TableName" type="String" column="TABLE_NAME"/>
	<set name="Fields" table="FILTER_FIELD">
		<key column="FILTER_ID" /> 
		<one-to-many class="DataAccess.FilterField, DataAccess" /> 
	</set>
	<many-to-one name="CreatedUser" column="USER_ID" 
		class="DataAccess.User, DataAccess" /> 
  </class>
</hibernate-mapping>

